#!/usr/bin/env python
#-*-conding:utf-8-*-

import urllib
import urllib.parse

str = r'http://127.0.0.1/test/css/%e5%8d%95%e5%b0%8f%e5%af%92%e3%80%81%e8%90%8c%e5%b0%8f%e5%a4%95%20-%20%e9%94%99%e4%bd%8d%e8%8a%82%e6%8b%8d.mp3'

wz = urllib.parse.unquote(str)
print(wz)

str = '单小寒、萌小夕 - 错位节拍'
print(urllib.parse.quote(str))